
//
//  MCBLEDefine.h
//  MCBLESDK
//
//  Created by Jany on 2017/11/29.
//  Copyright © 2017年 MillionConcept. All rights reserved.
//

#import <Foundation/Foundation.h>

# pragma mark - 行为定义

//MC if show log 是否打印日志，默认1：打印 ，0：不打印
#define MC_IS_SHOW_LOG 1

//CBcentralManager等待设备打开次数
# define MC_CENTRAL_MANAGER_INIT_WAIT_TIMES 5

//CBcentralManager等待设备打开间隔时间
# define MC_CENTRAL_MANAGER_INIT_WAIT_SECOND 2.0

//MCRhythm默认心跳时间间隔
#define MC_BEATS_DEFAULT_INTERVAL 3;

# pragma mark - MC通知

//蓝牙系统通知
//centralManager status did change notification
#define MCNotificationAtCentralManagerDidUpdateState @"MCNotificationAtCentralManagerDidUpdateState"
//did discover peripheral notification
#define MCNotificationAtDidDiscoverPeripheral @"MCNotificationAtDidDiscoverPeripheral"
//did connection peripheral notification
#define MCNotificationAtDidConnectPeripheral @"MCNotificationAtDidConnectPeripheral"
//did filed connect peripheral notification
#define MCNotificationAtDidFailToConnectPeripheral @"MCNotificationAtDidFailToConnectPeripheral"
//did disconnect peripheral notification
#define MCNotificationAtDidDisconnectPeripheral @"MCNotificationAtDidDisconnectPeripheral"
//did discover service notification
#define MCNotificationAtDidDiscoverServices @"MCNotificationAtDidDiscoverServices"
//did discover characteristics notification
#define MCNotificationAtDidDiscoverCharacteristicsForService @"MCNotificationAtDidDiscoverCharacteristicsForService"
//did read or notify characteristic when received value  notification
#define MCNotificationAtDidUpdateValueForCharacteristic @"MCNotificationAtDidUpdateValueForCharacteristic"
//did write characteristic and response value notification
#define MCNotificationAtDidWriteValueForCharacteristic @"MCNotificationAtDidWriteValueForCharacteristic"
//did change characteristis notify status notification
#define MCNotificationAtDidUpdateNotificationStateForCharacteristic @"MCNotificationAtDidUpdateNotificationStateForCharacteristic"
//did read rssi and receiced value notification
#define MCNotificationAtDidReadRSSI @"MCNotificationAtDidReadRSSI"
// did write value to devicenotification
#define MCNotificationAtDidWriteValue @"MCNotificationAtDidWriteValue"

//蓝牙扩展通知
// did centralManager enable notification
#define MCNotificationAtCentralManagerEnable @"MCNotificationAtCentralManagerEnable"


# pragma mark - MC 定义的方法

//MC log
#define MCLog(fmt, ...) if(MC_IS_SHOW_LOG) { NSLog(fmt,##__VA_ARGS__); }
